<?php
//function wz_header($param){
include_once("common.php"); // session start for page security 
//	session_start();
//if($logon=="yes") if (! isSessionAuthenticated()) header ("Location: log_in.php");
include_once("ClsSebent/config.php");
$qry="Select * from cpanel_skin";
$rs=mysql_query($qry);
if($data=mysql_fetch_array($rs)){}
?>
<html>


<head>

<title><?php echo stripslashes($data['meta_title']);?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="<?php echo stripslashes($data['meta_keywords']);?>">
<meta name="description" content="<?php echo stripslashes($data['meta_description']);?>">

<link href="style.css" rel="stylesheet" type="text/css"></head>
<style>
.body {
	background-color: #<?php echo $data["pg_bg_clr"]; ?>;
}
.body,td,th {
	font-size: 14px;
	color: #<?php echo $data["tbl_txt_clr"];?>;
	font-weight: bold;
}
a:link {
	color: #<?php echo $data["lnk_txt"]; ?>;
}
a:visited {
	color: #<?php echo $data["lnk_vis"]; ?>;
}
a:hover {
	color: #<?php echo $data["lnk_roll"]; ?>;
}
a:active {
	color: #<?php echo $data["lnk_roll"]; ?>;
}
.h1 {
	font-weight: bold;
	font-size: 24px;
	color: #<?php echo $data["pg_txt_clr"]; ?>;
}
.h2 {
	font-weight: bold;
}
.h3 {
	font-weight: bold;
}
.h4 {
	font-weight: bold;
}
.h5 {
	font-weight: bold;
}
.h6 {
	font-weight: bold;
}
.h2 {
	font-size: 16px;
	color: #<?php echo $data["pg_txt_clr"]; ?>;
}
.style4 {font-size: 14px}
.style7 {
	font-family: Dauphin;
	font-size: 24px;
	color: #<?php echo $data["pg_txt_clr"]; ?>;
}
.style9 {color: #FFFFFF}
.style10 {font-size: 26px}
.style13 {font-size: 36px}
h3 {
	font-size: 16px;
	color: #<?php echo $data["pg_txt_clr"]; ?>;
}
.style8 {font-size: 24px}
.style1 {font-size: 24px;
	font-weight: bold;
	font-style: italic;
	color: #<?php echo $data["pg_txt_clr"]; ?>;
}
</style>
<body class="body">
<CENTER><H2>
<?php
	include_once("ClsSebent/config.php");

	$sql="SELECT fname,email,site_id FROM reseller WHERE (active='Y' OR active='A') AND uid='$uid' AND pwd='$pwd'";
	//echo $sql;
	$result = mysql_query($sql);
	$num=1;
	if($row=mysql_fetch_array($result)){
		$fname=$row["fname"];
		$email=$row["email"];
		$_SESSION['SITE_ID']=$row["site_id"];		
	}
	else{
		echo "Unauthorized Access!<BR><BR><a href='#' onclick='javascript:history.back()'>Go Back</a>"; 
		exit; 
	}
?></H2></CENTER>
<TABLE border=1 cellpadding="0" cellspacing="0" bordercolorlight="#FFFFFF" bordercolordark="#000000" bordercolor="#<?php echo $data['pg_bdr_1'];?>" width="100%" height="100%">
<TR>
	<TD width="100%" height="100%">
		<table border="0" cellpadding="0" bordercolor="<?php echo $data['pg_bdr_2'];?>" cellspacing="0" width="100%" height="100%">
		  <tr>
			<td width="150" height="150"><img border="0" src="./photos/header/<?php echo $data['cpnl_logo'];?>" width="150" height="150"></td>
			<td width="532" height="150" background="./photos/header/<?php echo $data['cpnl_hdr_image'];?>">
			  <div align="center"><font face="Arial" size="6" color="<?php echo $data['pg_txt_clr'];?>"><?php echo $data['comp_name'];?></font></div>
 <div align="center"><?php echo $data['comp_slogan'];?></div>
 <div align="center"><font face="Lucida Handwriting" size="3" color="<?php echo $data['pg_txt_clr'];?>">Website Control Panel</font></div></td>
			<td width="201" height="150"><div align="center"><?php echo $data['comp_contact'];?></div></td>
		  </tr>
		  <tr>
			<td width="100%" height="437" colspan="3">
			  <table border="1" cellpadding="0" cellspacing="0" width="100%" bordercolorlight="#FFFFFF" height="100%" bordercolordark="#000000" bordercolor="#<?php echo $data['pg_bdr_3'];?>">
				<tr>
				  <td width="100%" valign=top>&nbsp;
					<CENTER><H2> Website Control Panel</H2>
					<TABLE width="60%" cellpadding=5 cellspacing=5>
					<?php 
						if("$_SESSION['SITE_ID']" == "101"){
					?>
					<tr><td nowrap><a href="reseller.php?site_id=101">View/Manage New reseller (admin)</a></td><td nowrap>&nbsp;</td></tr>
					<tr><td nowrap><a href="reseller_renewal.php?site_id=101">View/Manage Reseller Renewal (admin)</a></td><td nowrap><a href="product_pricing.php?site_id=<?php echo $_SESSION['SITE_ID']; ?>"></a></td></tr>
					<TR><td nowrap colspan=2><HR color="#<?php echo $data['div_line'];?>"></td></tr>					
					<?php
					}
					?>
					<TR><td nowrap><a href="contactinfo.php?site_id=<?php echo $_SESSION['SITE_ID']; ?>">Website Name & Contact Info</a></td><td nowrap><a href="cpanel.html">Log Off</a></td></tr>
					<TR><td nowrap><a href="payment_acc.php?site_id=<?php echo $_SESSION['SITE_ID']; ?>">Payment Gateway</a></td><td nowrap><a href="settings.php?site_id=<?php echo $_SESSION['SITE_ID']; ?>">Settings</a></td></tr>
					<TR><td nowrap><a href="reseller_reg.php?site_id=<?php echo $_SESSION['SITE_ID']; ?>" target="n1">Register new Reseller Account (Public)</a></td><td nowrap>&nbsp;</td></tr>
					
					<TR><td nowrap colspan=2><HR color="#<?php echo $data['div_line'];?>"></td></tr>
					
					<TR><td nowrap><a href="skin.php?site_id=<?php echo $_SESSION['SITE_ID']; ?>">Website Skin</a></td><td nowrap><a href="logo.php?site_id=<?php echo $_SESSION['SITE_ID']; ?>">Website Logo</a></td></tr>
					<TR><td nowrap><a href="site_meta.php?site_id=<?php echo $_SESSION['SITE_ID']; ?>">Website Meta Tags</a></td>
					<td nowrap><?php if($_SESSION['SITE_ID']==101){?><a href="cpanel_skin.php?site_id=<?php echo $_SESSION['SITE_ID']; ?>">Control Panel Skin</a><?php }?></td>
					</tr>
	<?php if($_SESSION['SITE_ID']==101){?><TR>
					  <td nowrap><a href="cpanel_contactinfo.php?site_id=<?php echo $_SESSION['SITE_ID'];?>">Control Panel Contact Info</a></td>
					  <td nowrap><a href="cpanel_meta.php?site_id=<?php echo $_SESSION['SITE_ID'];?>">Control Panel Meta Tags</a> </td>
					</tr><?php }?>				    
					<TR><td nowrap colspan=2><HR color="#<?php echo $data['div_line'];?>"></td></tr>					
					<tr><td nowrap><a href="page_content.php?site_id=<?php echo $_SESSION['SITE_ID']; ?>">Manage pages</a></td><td nowrap><a href="navbar.php?site_id=<?php echo $_SESSION['SITE_ID']; ?>">Manage Navigation Bar</a></td></tr>
					<tr><td nowrap><a href="page_meta.php?site_id=<?php echo $_SESSION['SITE_ID']; ?>"">Manage Meta-Tag for pages</a></td><td nowrap></td></tr>
				    
					<TR><td nowrap colspan=2><HR color="#<?php echo $data['div_line'];?>"></td></tr>
					
					<!-- <tr>
					  <td nowrap><a href="cartmain.php?site_id=<?php echo $_SESSION['SITE_ID']; ?>">Shopping Cart Admin </a></td>
					  <td nowrap><a href="page_content_1.php?site_id=<?php echo $_SESSION['SITE_ID'];?>">Demo Link </a></td>
					  </tr> -->
					<tr><td nowrap><a href="product_pricing.php?site_id=<?php echo $_SESSION['SITE_ID']; ?>">Add Product/Pricing</a></td><td nowrap>
					<?php 
						if("$_SESSION['SITE_ID']" == "101"){
					?>
					
					<a href="page_products.php?site_id=<?php echo $_SESSION['SITE_ID']; ?>">Product Master (admin)</a>
					
					<?php
					}
					?>					
					</td></tr>
					<tr>
					<td nowrap><?php if($_SESSION['SITE_ID']==101){?> <a href="product_addon.php?site_id=<?php echo $_SESSION['SITE_ID']; ?>">Product Addons</a> <?php }?></td>
					<td></td>
					</tr>
					</TABLE>
					</CENTER>
<?php
	include_once("king_foot.php");
?>